package com.tools.mytools.fieldcheck;

import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

import com.tools.common.aop.inputcheck.CheckInput;
import com.tools.common.aop.inputcheck.Email;
import com.tools.common.aop.inputcheck.Password;
import com.tools.common.aop.track.Track;
import com.tools.mytools.BaseActivity;
import com.tools.mytools.R;

import butterknife.BindView;
import butterknife.OnClick;

public class LoginCheckActivity extends BaseActivity {

    @Override
    protected int getLayoutResId() {
        return R.layout.checker_layout;
    }

    @Override
    protected void doActivityInit(Bundle savedInstanceState) {
        super.doActivityInit(savedInstanceState);
    }

    @OnClick(R.id.do_input_check)
    public void onLogin() {
        doInputParamCheck("joe@gmail.com", "1243567890");
    }

    @CheckInput
    @Track
    public static void doInputParamCheck(@Email String email, @Password String password) {
        Log.d("param check", "inside param check method");
    }

}
